﻿using System;
using Microsoft.SilverlightMediaFramework.Player;

namespace SMF.HowTo.Model
{
    public class CustomMarker : Marker
    {
        public string Description { get; set; }

        public event Action<CustomMarker> Selected;

        public override void OnMarkerClicked(object sender)
        {
            base.OnMarkerClicked(sender);

            if (Selected != null)
            {
                Selected(this);
            }
        }
    }
}